<div ng-controller="SelectedTextController" class="md-padding" ng-cloak>
  <h1 class="md-title">Pick an item below</h1>
  <div layout="row">
    <md-input-container>
      <label>Items</label>
      <md-select ng-model="selectedItem" md-selected-text="getSelectedText()">
        <md-optgroup label="items">
          <md-option ng-repeat="item in items" ng-value="item">Item {{item}}</md-option>
        </md-optgroup>
      </md-select>
    </md-input-container>
  </div>
</div>
